<template>
  <!-- 新增数据弹窗内容  规则：重复使用的组件和变动的组件都封装成了插槽-->
  <div class="coverLayer">
    <div class="addDataBox">
      <!-- 标题 -->

      <div class="titleBox">
        <slot name="title"></slot>
        <!-- <span>修 改 数 据</span> -->
      </div>
      <!-- 内容区域 -->
      <div class="contentBox">

        <ul>
          <slot name="content"></slot>
          <!-- <li>
            <div>
              <div>
                <div class="lableBox">
                  <label for="">仪器ID:</label>
                </div>
                <div class="inputBox">
                  <input
                    class="inputTextStyle"
                    placeholder="请输入仪器ID"
                    type="text"
                  />
                </div>

              </div>
            </div>
            <div>
              <div>
                <div class="lableBox">
                  <label for="">仪器名称:</label>
                </div>
                <div class="inputBox">
                  <input
                    class="inputTextStyle"
                    placeholder="请输入仪器ID"
                    type="text"
                  />
                </div>

              </div>
            </div>
          </li> -->
        </ul>
      </div>
      <!-- 文本域 -->
      <div class="textAreaBox">
        <div class="textAreatTitle">
          <slot name="textAreatLabel"></slot>
          <!-- <label slot="textAreatLabel" for="">故障详情:</label> -->
        </div>
        <div class="textAreaContent">
          <slot name="textAreaContent"></slot>
          <!-- <textarea slot="textAreaContent" placeholder="请输入故障详情" name="" id="" cols="116" rows="6"></textarea> -->
        </div>
      </div>
      <!-- 按钮 -->
      <div class="btnBoxSytle">
        <div class="deleteBtn">
          <slot name="delete"></slot>
          <!-- <button>删 除</button> -->
        </div>
        <div class="affirmBtn">
          <slot name="affirm"></slot>
          <!-- <button>确 认</button> -->
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {};
</script>

<style lang='scss' scoped>
.coverLayer {
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  position: absolute;
  top: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  .addDataBox {
    width: 95rem;
    background-color: #ffffff;
    border-radius: 1.4rem;

    .titleBox {
      width: 100%;
      height: 8rem;
      background-color: #0669b2;
      display: flex;
      border-top-left-radius: 1.2rem;
      border-top-right-radius: 1.2rem;
      justify-content: center;
      align-items: center;
      font-size: 2.6rem;
    }
    .contentBox {
      width: 100%;
      ul {
        width: 100%;
        height: 100%;
        li {
          width: 100%;
          height: 6rem;
          margin-top: 1rem;
          display: flex;
          justify-content: center;
          align-items: center;
          div {
            flex: 1;
            position: relative;
            .boxHospitalList {
              max-height: 26rem;
              position: absolute;
              top: 7rem;
              right: 4rem;
              overflow: auto;
            }
          }
        }
      }
    }
    .textAreaBox {
      width: 100%;
      height: 16rem;
      display: flex;
      flex-direction: column;
      .textAreatTitle {
        flex: 1;
        color: #333333;
        display: flex;
        align-items: center;
        font-size: 2rem;
        margin-left: 3.6rem;
      }
      .textAreaContent {
        flex: 3;
        height: 10rem;
        display: flex;
        justify-content: center;
        textarea {
          width: 93%;
          padding: 1rem;
          outline: none;
          border-radius: 0.6rem;
        }
      }
    }
    .btnBoxSytle {
      width: 100%;
      height: 10rem;
      display: flex;
      div {
        flex: 1;
        display: flex;
        align-items: center;
        // justify-content: center;
        button {
          width: 16rem;
          height: 6rem;
          border-radius: 0.6rem;
          background-color: #0669b2;
          color: #ffffff;
          border: none;
          font-size: 2rem;
        }
      }
      .deleteBtn {
        justify-content: flex-end;
        margin-right: 16rem;
      }
    }
  }
}
</style>